<?php echo $this->load->view('meta');?>
<link rel="stylesheet" href="<?=base_url();?>css/static.css" />
<script type="text/javascript" language="JavaScript" src="<?=base_url();?>js/jquery.scrollTo.js"></script>
<script type="text/javascript" language="JavaScript" src="<?=base_url();?>js/jquery.serialScroll.js"></script>
<script type="text/javascript" language="JavaScript">
	$(document).ready(function() {
		$("#announcements").serialScroll({
				items:'li',
				prev:'#announcements_nav a.prev',
				next:'#announcements_nav a.next',
				axis:'x',
				duration:700,
				force:true,
				cycle:true
			});
	});
</script>
<title>xa-ncsu | announcements</title>
<?php echo $this->load->view('header'); ?>
<div id="announcements">
<?php if ($announcements->num_rows() > 0) : ?>
	<ul>
		<?php foreach ($announcements->result() as $row): ?>
			<li>
				<h1><?=$row->title?></h1>
				<div><?=$row->body?></div>
			</li>
		<?php endforeach; ?>
	</ul>
<?php endif; ?>
</div>
<div id="announcements_nav"><a href="#next" class="next right">next</a><a href="#prev" class="prev left">prev</a><a href="<?=site_url();?>feed/announcements">rss</a></div>
<?php echo $this->load->view('footer');?>